package com.zaoniao.enstudy.infrastructure.convert;

import com.zaoniao.enstudy.domain.entity.ExamAnswer;
import com.zaoniao.enstudy.infrastructure.po.ExamAnswerPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ExamAnswerCrt {

    ExamAnswerCrt INSTANCE = Mappers.getMapper(ExamAnswerCrt.class);

    ExamAnswer po2do(ExamAnswerPo examAnswerPo);

    ExamAnswerPo do2po(ExamAnswer examAnswer);

    List<ExamAnswerPo> do2poList(List<ExamAnswer> examAnswers);
}
